import request from "../../utils/request";

/**
 * 获取附近商家信息
 *
 */

// export const getNearbyApi = ({id, start, limit}) => {
//   return request.get(
//     `/app-dev/getNearPoiList?poiId=${id}&start=${start}&limit=${limit}`
//   );
// };
export const getNearbyApi = ({ poiId, start, limit }) => {
  return request.get("/app-dev/getNearPoiList", {
    params: {
      poiId,
      start,
      limit,
    },
  });
};

/**
 *
 * 获取评论信息
 */

export const getCommendApi = ({ poiId, offset, pageSize }) => {
  return request.get(
    `/app-dev/getCommentList?poiId=${poiId}&offset=${offset}&pageSize=${pageSize}`
  );
};
